package com.pokerpro.model;

public class Flop {
	
	private Card card1;
	private Card card2;
	private Card card3;
	
	public Flop (Card c1, Card c2, Card c3) {
		card1 = c1;
		card2 = c2;
		card3 = c3;
	}
	
	public boolean isSuited() {
		boolean result = false;
		if (card1.getSuit().equals(card2.getSuit())) {
			if (card3.equals(card2)) {
				result = true;
			}
		}
		return result;
	}
	
	public boolean isFlushPossible() {
		return isSuited();
	}
	
	public boolean isQuadsPossible() {
		boolean result = false;
		if (card1.getValue().equals(card2.getValue())){
			result = true;
		}
		if (card1.getValue().equals(card3.getValue())){
			result = true;
		}
		if (card2.getValue().equals(card3.getValue())){
			result = true;
		}
		return result;
	}
}
